
<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-line-chart_icon"></i> 储值活动</div>
    <div class="fn-right">
        <form class="input-group" id="form" action="{:url('card/user',['store_id' => $store_id])}">
            <input type="hidden" name="store_id" value="{$store_id}">
            <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" readonly autocomplete="false" value="{$starttime}"/>
            <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" readonly autocomplete="false" value="{$endtime}"/>
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('card/user',['time' => 1,'store_id' => $store_id])}" class="button {$time==1?'button-violet':''}">今日</a>
        <a href="{:url('card/user',['time' => 2,'store_id' => $store_id])}" class="button {$time==2?'button-violet':''}">昨日</a>
        <a href="{:url('card/user',['time' => 30,'store_id' => $store_id])}" class="button {$time==30?'button-violet':''}"">本月</a>
        <a href="{:url('card/user',['time' => 60,'store_id' => $store_id])}" class="button {$time==60?'button-violet':''}"">上月</a>
    </div>
</div>
<div class="cards">
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-wodedingdan2"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$carduser_num}</div><div class="text">开通数量</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$carduser_amount}</div><div class="text">付款金额</div></div>
    </div>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w60 fn-tac"></th>
            <th class="w140">昵称</th>
            <th>好店</th>
            <th>会员卡</th>
            <th class="w100 fn-tar">剩余金额(￥)</th>
            <th class="w100 fn-tar">开通时间</th>
            <th class="w120 fn-tac">最后更新</th>
            <th class="w70 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td><a href="javascript:openwin('{:url('user/review',['uid' => $vo.user.id])}')">{$vo.user.nickname}</a></td>
            <td><a href="{:url('store/review',array('id'=>$vo.store.id))}">{$vo.store.name}</a></td>
            <td>{$vo.card.name}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.amount|money}</td>
            <td class="fn-tar">{$vo.create_time|date="Y-m-d"}</td>
            <td class="fn-tac">{$vo.update_time|date="Y-m-d"}</td>
            <td class="fn-tac"><a class="button isDel" url="{:url('card/deleteUser',array('id'=>$vo.id))}" href="javascript:;" title="删除">删除</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','form','layer','tip','date', function () {
    $('#form').isForm({types:1});
    $('.isDel').isDel();
})
</script>